home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Desktop System Settings.xpl < prev    next >
Text File  |  1999-09-08  |  2KB  |  59 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Appearance\Desktop\Options"
  5. "NAME"="System"
  6. "VERSION"="1.50"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Show "Network Neighborhood" on desktop"
  9. "TEXT 2"="Disable entire desktop (!)"
  10. "WARNING"="1"
  11. "DESCRIPTION 1"="!WARNING! Hiding the Network Neightborhood can lead to serious problems (for example with UNC names). Deactivate this option ONLY if you are sure that you don't need any network-function. !WARINING!"
  12. "DESCRIPTION 2"="If "Disable entire desktop" option is set, the entire desktop is disabled. This means, ABSOLUTELY NO ICONS are displayed on the desktop."
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  16.  
  17.  
  18. sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
  19. sPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDesktop"
  20.  
  21. Sub Plugin_Initialize 
  22.  i=RegReadValue(sp&"NoNetHood")
  23.  if IsEmpty(i) or i="00000000" then SetUIElement 1,true
  24.  
  25.  i=RegReadValue(sPath)
  26.  if IsEmpty(i)=false then
  27.     If i=1 then Call SetUIElement(2,true) 
  28.  end if  
  29.  
  30. End Sub
  31.  
  32. Sub Plugin_CheckData(ElementIndex)
  33. End Sub
  34.  
  35. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  b=GetUIElement(1)
  37.  if b=true then
  38.     Call RegWriteValue(sp&"NoNetHood","00000000",3)
  39.  else
  40.     Call RegWriteValue(sp&"NoNetHood","01000000",3)
  41.  end if
  42.  
  43.  b=GetUIElement(2)
  44.  if b=true then
  45.     Call RegWriteValue(sPath,1,2)
  46.  else
  47.     s=RegReadValue(sPath)
  48.     if IsEmpty(s)=false then
  49.        Call RegDeleteValue(sPath)
  50.     end if
  51.  end if
  52.  
  53.  
  54.  Call Restart()
  55. End Sub
  56.  
  57. Sub Plugin_Terminate 
  58. End Sub
  59.